
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看购物车</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <el-form-item label="标识">
                            <span>{{ shoppingCart.EId }}</span>
                        </el-form-item>
                        <el-form-item label="名称">
                            <span>{{ shoppingCart.name }}</span>
                        </el-form-item>
                        <el-form-item label="商家">
                            <span>{{ shoppingCart.businessId }}</span>
                        </el-form-item>
                        <el-form-item label="商家">
                            <span>{{ shoppingCart.businessName }}</span>
                        </el-form-item>
                        <el-form-item label="商品">
                            <span>{{ shoppingCart.goodsId }}</span>
                        </el-form-item>
                        <el-form-item label="商品">
                            <span>{{ shoppingCart.goodsName }}</span>
                        </el-form-item>
                        <el-form-item label="商品数量">
                            <span>{{ shoppingCart.goodsAmount }}</span>
                        </el-form-item>
                        <el-form-item label="商品名称">
                            <span>{{ shoppingCart.goodsHeading }}</span>
                        </el-form-item>
                        <el-form-item label="商品价格">
                            <span>{{ shoppingCart.goodsPrice }}</span>
                        </el-form-item>
                        <el-form-item label="商品原价">
                            <span>{{ shoppingCart.standardPrice }}</span>
                        </el-form-item>
                        <el-form-item label="商品简介">
                            <span>{{ shoppingCart.goodsIntroduction }}</span>
                        </el-form-item>
                        <el-form-item label="商品库存">
                            <span>{{ shoppingCart.inventory }}</span>
                        </el-form-item>
                        <el-form-item label="商品状态">
                            <span>{{ shoppingCart.goodsStatus }}</span>
                        </el-form-item>
                        <el-form-item label="用户">
                            <span>{{ shoppingCart.employeeName }}</span>
                        </el-form-item>
                        <el-form-item label="用户">
                            <span>{{ shoppingCart.employeeId }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ shoppingCart.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ shoppingCart.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ shoppingCart.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ shoppingCart.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ shoppingCart.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {ShoppingCartService} from './ShoppingCartService';

export default {
    components: {
    },
    data() {
        return {
            shoppingCart:{},
        }
    },
    methods: {
        findShoppingCartForView(shoppingCartId)//查找购物车
        {
            ShoppingCartService.findShoppingCartForView(shoppingCartId).then((resp) => {
                this.shoppingCart = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询购物车出错'
        })
        })
        },
    },
    created() {
        const shoppingCartId = this.$route.params.shoppingCartId;
        this.findShoppingCartForView(shoppingCartId);
    },
}

</script>
<style scoped lang="scss">

</style>
